/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import '../../../styles/variables.less';
.summary-card {
  padding: 16px;
  min-width: 200px;
  width: 100%;
  border: @global-border;
  border-radius: 10px;
  background: @white;
  justify-content: space-between;

  .summary-card-title {
    color: @text-grey-muted;
    margin-bottom: 4px;
  }

  .inverse-label {
    display: flex;
    flex-direction: column-reverse;
  }

  .summary-card-description {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 0;
  }

  .ant-progress-circle {
    .ant-progress-text {
      font-weight: 500;
    }
  }

  &.bg-success {
    background-color: @green-8;
  }
  &.bg-failed {
    background-color: @red-8;
  }
  &.bg-aborted {
    background-color: @yellow-8;
  }
  &.bg-primary {
    background-color: @blue-8;
  }

  .new.ant-progress-circle {
    .ant-progress-circle-path {
      stroke: @blue-3 !important;
    }
    .ant-progress-text {
      color: @blue-3;
    }
  }
  .success.ant-progress-circle {
    .ant-progress-circle-path {
      stroke: @green-3 !important;
    }
    .ant-progress-text {
      color: @green-3;
    }
  }
  .aborted.ant-progress-circle {
    .ant-progress-circle-path {
      stroke: @yellow-2 !important;
    }
    .ant-progress-text {
      color: @yellow-2;
    }
  }
  .failed.ant-progress-circle {
    .ant-progress-circle-path {
      stroke: @red-3 !important;
    }
    .ant-progress-text {
      color: @red-3;
    }
  }
  .acknowledged.ant-progress-circle {
    .ant-progress-circle-path {
      stroke: @blue-2 !important;
    }
    .ant-progress-text {
      color: @blue-2;
    }
  }
  .assigned.ant-progress-circle {
    .ant-progress-circle-path {
      stroke: @purple-3 !important;
    }
    .ant-progress-text {
      color: @purple-3;
    }
  }
}
